package com.atyixiang.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 数据字典API接口
 */
@FeignClient("service-cmn")
@Repository
@Component
public interface DictFeignClient {

    /**
     * 获取数据字典名称
     * 根据dictcode和value查询
     */
    @GetMapping(value = "/admin/Dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);


    /**
     * 获取数据字典名称
     *  根据value查询
     */
    @GetMapping(value = "/admin/Dict/getName/{value}")
    String getName(@PathVariable("value") String value);

}
